!function () {
  const view = View("#mySlides");
  const controller = {
    view: null,
    swiper: null,
    swiperOptions: {
      loop: true,
      pagination: {
        el: ".swiper-pagination",
      },
      navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
      },
      scrollbar: {
        el: ".swiper-scrollbar",
      },
    },
    init: function (view) {
      this.view = view;
      this.initSwiper();
    },
    initSwiper: function () {
      this.swiper = new Swiper(
        this.view.querySelector(".swiper-container"),
        this.swiperOptions
      );
    },
  };
  controller.init(view);
}.call();
